﻿/*
 @Name: color插件
 @Author: ray
 @License: MIT
*/
;rayui.define("colorutils",function(h,l){var a=rayui.$,e=rayui.colorutils,k="color",b=a("body"),c=a(document),i=1000,f={mclass:{},datas:{}},j={event:"click",swidth:260,sheight:180,format:"hex",color:"#000",alpha:false,precolors:[]},g=function(m){var n=this;n.index=i;if(typeof m.inputArea==="string"){m.inputArea=[m.inputArea]}n.options=a.extend(true,{},j,m);g.utils.init.call(n)};g.utils={init:function(){var n=this,m=n.options}};var d={options:j,render:function(o){var n=o.elem;if(a(n).length===0){return"DOM对象不存在"}var m=new g(o);f.mclass[i++]=m;return m}};h(k,d)},rayui.jsAsync());